import Vue from 'vue'
import Vant, { Lazyload,ImagePreview } from 'vant';
import 'vant/lib/index.css';
// 配合 Lazyload 组件实现图片懒加载

import App from './App.vue'
import router from './router'
import store from './store'
import axios from 'axios'
import './assets/font/font_r5ojrps5fn/iconfont.css'
import './assets/css/global.css'
// 配合 Lazyload 组件实现图片懒加载
Vue.use(Lazyload);
// 图片预加载
Vue.use(ImagePreview)
// 滚动条
import { HappyScroll } from 'vue-happy-scroll'
Vue.component('happy-scroll', HappyScroll)
import 'vue-happy-scroll/docs/happy-scroll.css'
// 配置基准
axios.defaults.baseURL = 'https://fanhc.xyz/api/public/v1'
// 移动端适配
import 'amfe-flexible/index.js'
// 头部组件引入
import headnev from '@/components/common/Head.vue'
// 底部组件引入
import footnav from '@/components/common/Foot.vue'
Vue.use(Vant);
Vue.use(headnev)
Vue.use(footnav)
Vue.component('head-nev',headnev)
Vue.component('foot-nav',footnav),



Vue.config.productionTip = false
Vue.prototype.$http = axios
new Vue({

  components: {
    'head-nev': headnev,
    'foot-nav': footnav
  },
  router,
  store,
  render: h => h(App)
}).$mount('#app')
